package com.loby.service.api;

import com.loby.data.base.pojo.RtMonStationPollutant;
import com.loby.data.base.pojo.TBaseOrganization;
import com.loby.data.base.pojo.TMonMonitorStation;
import com.loby.data.rest.RestResult;
import com.loby.data.base.pojo.TMonSourceShops;
import com.loby.data.util.TimeDataParam;

/**
 * zookeeper同步数据库
 */

public interface BaseMonitorDataServiceApi {
    /**
     * 插入数据同步
     * <p>
     * path:路径
     * data:节点数据
     *
     * @return
     */
    RestResult newOrganization(TBaseOrganization baseOrganization) throws Exception;


    RestResult removeOrganization(long id);


    RestResult updateOrganization(TBaseOrganization baseOrganization);


    RestResult newShop(TMonSourceShops monSourceShops);


    RestResult removeShop(long id);


    RestResult updateShop(TMonSourceShops monSourceShops);

    RestResult newMonitorStation(TMonMonitorStation monitorStation);


    RestResult removeMonitorStation(long id);


    RestResult updateByMonitorStationId(long id);


    RestResult getStationTree(int typeId, String keys);


    RestResult newRtStationPollutant(RtMonStationPollutant pollutant);


    RestResult getMultipulStationByCode(String code,int typeId, String keys);

    RestResult getAllStations(int typeId,String keys);

    RestResult getMultipulStationsByMNCodes(String[] code, String keys);


    RestResult getStationById(long id);

    RestResult getMinDatas(TimeDataParam param);

    RestResult getRealDatas(TimeDataParam param);

    RestResult getHourDatas(TimeDataParam param);


    RestResult getDayDatas(TimeDataParam param);

    RestResult getAllTimeDatas(String mnCode);


}

